using NodeEditor;
using System.Collections;
using System.Collections.Generic;

namespace ETHotfix
{
    [NodeEvent(typeof(EventNode))]
    public class EventNodeHandle : NodeHandle<EventNode>
    {
        protected override void OnHandle(RuntimeTree runtimeTree, RuntimeNode runtimeNode, EventNode data, Unit unit)
        {
            var unitState = unit.GetComponent<UnitStateComponent>();
            data.result = (int)unitState.eventType == (int)data.eventType;
        }
    }
}